<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
    <meta charset="utf-8"></meta>
<head th:include="include :: header('麦芒平台模型管理')">
</head>
    <head>
        <title>Hello model</title>
    </head>
<body>
<p th:text=" ${today}"></p>
<p th:text="'Hello！, ' + ${name} + '!'"></p>
<p th:text="'你知道吗？' + ${model} + '!'"></p>
<a class="btn btn-success " onclick="saveModel()"
   shiro:hasPermission="activiti:model:add">
    <i class="fa fa-plus"></i> 添加模型
</a>
哈哈哈哈哈哈哈哈哈哈

<script th:inline="javascript">

    /**
     * 新增一个模型，跳转url
     */
    function saveModel() {
        alert("hello model");
    }
</script>
</body>
</html>